home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2008 February / PCWFEB08.iso / Software / Freeware / Miro 1.0 / Miro_Installer.exe / resources / templates / channel-content next >
Encoding:
Extensible Markup Language  |  2007-11-12  |  5.5 KB  |  123 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml"
  4.       xmlns:t="http://www.participatorypolitics.org/"
  5.       xmlns:i18n="http://www.participatoryculture.org/i18n"
  6.       eventCookie="@@@eventCookie@@@" dtvPlatform="@@@dtvPlatform@@@">
  7. <head>
  8.     <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  9.         <t:include filename="dynamic.js" />
  10.  
  11. </head>
  12. <body>
  13. <!-- DOWNLOADS ******************************************************** -->
  14. <div t:updateForView="allDownloadingItems">
  15. <div t:hideIf="allDownloadingItems.len() == 0">
  16. <div class="main-channelbar downloading-channelbar" onclick="return eventURL('action:toggleDownloadsView');">
  17.   <div class="triangle" t:hideIf="showDownloads"/>
  18.   <div class="triangle down" t:hideIf="not showDownloads"/>
  19.   <a class="download-bar-action" href="#"
  20.           onclick="eventURLAndStop('action:cancelDownloads', event);">Cancel All</a>
  21.   <a class="download-bar-action" href="#"
  22.           t:hideIf="allItemsPaused(allDownloadingItems)"
  23.           onclick="eventURLAndStop('action:pauseDownloads', event);">Pause All</a>
  24.   <a class="download-bar-action" href="#"
  25.           t:hideIf="allItemsDownloading(allDownloadingItems)"
  26.           onclick="eventURLAndStop('action:resumeDownloads', event);">Resume All</a>
  27.   <span t:hideIf="allDownloadingItems.len()==1"  i18n:translate="">
  28.       <span t:replace="allDownloadingItems.len()" i18n:name="count"/> Downloading</span>
  29.    <span t:hideIf="allDownloadingItems.len()!=1" i18n:translate="">1 Downloading</span>
  30. </div>
  31. </div>
  32. </div>
  33.  
  34.     <div class="downloading-sort" t:updateForView="downloadingItems">
  35.         <div t:hideIf="downloadingItems.len() == 0">
  36.             <t:executeTemplate filename="sort-bar" 
  37.                 itemSort="itemSortDownloading"
  38.                 section="'downloading'" />
  39.         </div>
  40.     </div>
  41.     <div t:repeatForView="downloadingItems" t:repeatTemplate="download-item" t:containerDiv="true" />
  42.  
  43. <!-- / DOWNLOADS -->
  44.  
  45. <!-- NEW ITEMS -->
  46.  
  47. <div class="available-channelbar-wrap">
  48.     <a class="main-channelbar available-channelbar" href="#" onclick="return eventURL('action:toggleNewItemsView');" t:updateForView="matchingItems">
  49.         <div class="triangle" t:hideIf="showNewItems"/>
  50.         <div class="triangle down" t:hideIf="not showNewItems"/>
  51.  
  52.         <div t:showIf="not isFolder" i18n:translate="">
  53.             <div t:showIf="feed.inlineSearchTerm is None">
  54.                 <span i18n:name="len" t:replace="notDeleted.len()" /> 
  55.                 Items in this Channel
  56.             </div>
  57.             <div t:showIf="feed.inlineSearchTerm is not None">
  58.                 <div t:showIf="notDeleted.len() == matchingItems.len()" i18n:translate="">
  59.                     All <span i18n:name="len" t:replace="matchingItems.len()" /> 
  60.                     Match This Search
  61.                 </div>
  62.                 <div t:hideIf="notDeleted.len() == matchingItems.len()" i18n:translate="">
  63.                     <span i18n:name="len" t:replace="matchingItems.len()" /> 
  64.                     Match This Search
  65.                 </div>
  66.             </div>
  67.         </div>
  68.  
  69.         <div t:showIf="isFolder" i18n:translate="">
  70.             <span i18n:name="len" t:replace="notDeleted.len()" /> 
  71.             Items in this Channel Folder
  72.         </div>
  73.     </a>
  74. </div>
  75.  
  76. <div t:updateForView="matchingItems">
  77.     <div class="available-sort" t:showIf="showNewItems">
  78.         <t:executeTemplate filename="sort-bar" 
  79.             itemSort="itemSort"
  80.             section="'main'" />
  81.     </div>
  82. </div>
  83.  
  84. <div t:repeatForView="newItems" t:repeatTemplate="download-item" t:containerDiv="true" />
  85.  
  86. <!-- The infamous "N more videos" oval -->
  87. <div t:updateForView="matchingItems">  
  88.   <div t:hideIf="allItemsMode or not showNewItems or newItems.len() == matchingItems.len()">
  89.       <a href="#" onclick="return eventURL('action:toggleAllItemsMode');" class="main-notification">
  90.           <span t:hideIf="isFolder" i18n:translate=""><span i18n:name="count" t:replace="matchingItems.len() - newItems.len()" /> more on this channel >></span>
  91.           <span t:showIf="isFolder" i18n:translate=""><span i18n:name="count" t:replace="matchingItems.len()"/> items in this channel folder >></span>
  92.         </a>
  93.         <a href="#" onclick="return eventURL('action:toggleAllItemsMode');" class="main-notification-right"> </a>
  94.      <br clear="left" />
  95.   </div>
  96. </div>
  97.  
  98. <!-- / NEW ITEMS -->
  99.  
  100. <!-- WATCHABLE ******************************************************** -->
  101. <div t:hideIf="not isFolder and feed.getURL().startswith('dtv:directoryfeed')" t:updateHideOnView="thisFeedView">
  102.     <div t:updateForView="allWatchableItems">
  103.         <a class="main-channelbar downloaded-channelbar" href="#" onclick="return eventURL('action:toggleWatchableView')" t:hideIf="len(allWatchableItems) == 0 or (not isFolder and feed.getURL().startswith('dtv:directoryfeed'))" >
  104.             <div class="triangle" t:hideIf="showWatchableItems"/>
  105.             <div class="triangle down" t:hideIf="not showWatchableItems"/>
  106.             <span  i18n:translate=""><span i18n:name="len" t:replace="allWatchableItems.len()" /> Downloaded</span>
  107.         </a>
  108.     </div>
  109.     
  110.     <div t:updateForView="watchableItems">
  111.         <div t:hideIf="len(watchableItems) == 0">
  112.             <t:executeTemplate filename="sort-bar" 
  113.                 itemSort="itemSortWatchable"
  114.                 section="'watchable'" />
  115.         </div>
  116.     </div>
  117.     <div t:repeatForView="watchableItems" t:repeatTemplate="download-item" t:containerDiv="true" />
  118. </div>
  119.  
  120. <!-- / WATCHABLE -->
  121. </body>
  122. </html>
  123.